package Code;
//二维数组
public class Test10 {
    public static void main(String[] args) {
        //二维数组的静态初始化
        //格式：数据类型[][] 数组名 = new 数据类型[][]{{元素1,元素2},{元素1,元素2}};
        int[][] arr = {{11,22},{33,44},{55,66}};

        //元素访问
        System.out.println(arr[0][1]);

        //元素遍历
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j] + " ");
            }
        }
    }
}
